﻿@{
    Layout = "~/Views/Shared/_LayoutWiki.cshtml";
}

<h2>产品分类相关内容</h2>

<div class="item">
    <h3>获取全部节点</h3>

    <p>请求说明</p>
    <p>http请求方式: get</p>
    <p>http://hub.engnice.com/scrm/category/query</p>

    <p>返回说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>类型</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>data</td>
            <td>json</td>
            <td>列表数据</td>
        </tr>
        <tr>
            <td>data[x].ID</td>
            <td>int</td>
            <td>分类编号</td>
        </tr>
        <tr>
            <td>data[x].PID</td>
            <td>int</td>
            <td>父级编号</td>
        </tr>
        <tr>
            <td>data[x].PPath</td>
            <td>string</td>
            <td>父级路径</td>
        </tr>
        <tr>
            <td>data[x].Code</td>
            <td>string</td>
            <td>分类编码</td>
        </tr>
        <tr>
            <td>data[x].Name</td>
            <td>string</td>
            <td>分类名称</td>
        </tr>
        <tr>
            <td>data[x].IconFont</td>
            <td>string</td>
            <td>分类图标字体</td>
        </tr>
        <tr>
            <td>data[x].IconImage</td>
            <td>string</td>
            <td>分类图标图片</td>
        </tr>
    </table>
</div>

<div class="item">
    <h3>根据父级编号获取分类</h3>

    <p>请求说明</p>
    <p>http请求方式: get</p>
    <p>http://hub.engnice.com/scrm/category/getbypid</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>pid</td>
            <td>是</td>
            <td>父级编号</td>
        </tr>
        <tr>
            <td>top</td>
            <td>否</td>
            <td>提取行数</td>
        </tr>
    </table>

    <p>返回说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>类型</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>data</td>
            <td>json</td>
            <td>列表数据</td>
        </tr>
        <tr>
            <td>data[x].ID</td>
            <td>int</td>
            <td>分类编号</td>
        </tr>
        <tr>
            <td>data[x].PID</td>
            <td>int</td>
            <td>父级编号</td>
        </tr>
        <tr>
            <td>data[x].PPath</td>
            <td>string</td>
            <td>父级路径</td>
        </tr>
        <tr>
            <td>data[x].Code</td>
            <td>string</td>
            <td>分类编码</td>
        </tr>
        <tr>
            <td>data[x].Name</td>
            <td>string</td>
            <td>分类名称</td>
        </tr>
        <tr>
            <td>data[x].IconFont</td>
            <td>string</td>
            <td>分类图标字体</td>
        </tr>
        <tr>
            <td>data[x].IconImage</td>
            <td>string</td>
            <td>分类图标图片</td>
        </tr>
    </table>
</div>

<div class="item">
    <h3>根据父级编号获取子孙分类</h3>

    <p>请求说明</p>
    <p>http请求方式: get</p>
    <p>http://hub.engnice.com/scrm/category/getchildbypid</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>pid</td>
            <td>是</td>
            <td>父级编号</td>
        </tr>
    </table>

    <p>返回说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>类型</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>data</td>
            <td>json</td>
            <td>列表数据</td>
        </tr>
        <tr>
            <td>data[x].ID</td>
            <td>int</td>
            <td>分类编号</td>
        </tr>
        <tr>
            <td>data[x].PID</td>
            <td>int</td>
            <td>父级编号</td>
        </tr>
        <tr>
            <td>data[x].PPath</td>
            <td>string</td>
            <td>父级路径</td>
        </tr>
        <tr>
            <td>data[x].Code</td>
            <td>string</td>
            <td>分类编码</td>
        </tr>
        <tr>
            <td>data[x].Name</td>
            <td>string</td>
            <td>分类名称</td>
        </tr>
        <tr>
            <td>data[x].IconFont</td>
            <td>string</td>
            <td>分类图标字体</td>
        </tr>
        <tr>
            <td>data[x].IconImage</td>
            <td>string</td>
            <td>分类图标图片</td>
        </tr>
    </table>
</div>